<!-- BEGIN PAGE CONTAINER-->
<div class="container-fluid">
    <!-- BEGIN PAGE HEADER-->
    <div class="row-fluid">
        <div class="span12">
            <!-- BEGIN PAGE TITLE & BREADCRUMB-->
            <h3 class="page-title">
                Quản lý Shipping
            </h3>
            <ul class="breadcrumb">
                <li>
                    <i class="icon-home"></i>
                    <a href="index.html">Trang chủ</a>
                    <i class="icon-angle-right"></i>
                </li>
                <li>
                    <a href="#">Shipping</a>
                    <i class="icon-angle-right"></i>
                </li>
                <li><a href="/admin/frame/create">Chỉnh sửa Shipping</a></li>
            </ul>
            <!-- END PAGE TITLE & BREADCRUMB-->
        </div>
    </div>
    <!-- END PAGE HEADER-->
    <!-- BEGIN PAGE CONTENT-->
    <div class="row-fluid">
        <div class="span12">
            <!-- BEGIN EXAMPLE TABLE PORTLET-->
            <div class="portlet box light-grey">
                <div class="portlet-title">
                    <h4><i class="icon-plus-sign"></i>Chỉnh sửa shipping</h4>
                    <div class="tools">
                        <a href="javascript:;" class="collapse"></a>
                    </div>
                </div>
                <div class="portlet-body form">
                    <!-- BEGIN FORM-->
                        <?php $form=$this->beginWidget('CActiveForm', array(
                            'id'=>'product-frame-form',
                            'htmlOptions'=>array('action'=>'/admin/shippingcountry/update/id/'. $model->country_id),
                            'enableAjaxValidation'=>false,
                        )); ?>
                        <div class="row-fluid">
                            <div class="span6 ">
                                <div class="control-group">
                                    <label class="control-label" >Name</label>
                                    <div class="controls">
                                        <?php echo $form->textField($model,'name',array('size'=>20,'maxlength'=>20)); ?>
                                        <?php echo $form->error($model,'name', array('class'=>'help-block')); ?>
                                    </div>
                                </div>
                            </div>
                            <!--/span-->
                        </div>
                        <!--/row-->

                        <div class="row-fluid">
                            <div class="span6 ">
                                <div class="control-group">
                                    <label class="control-label" >Code</label>
                                    <div class="controls">
                                        <?php echo $form->textField($model,'code',array('size'=>20,'maxlength'=>5)); ?>
                                        <?php echo $form->error($model,'code', array('class'=>'help-block')); ?>
                                    </div>
                                </div>
                            </div>
                            <!--/span-->
                        </div>
                        <!--/row-->
                        <div class="row-fluid">
                            <div class="span6 ">
                                <div class="control-group <?php if ($form->error($model,'zone_id') != "") echo "error"; ?>">
                                    <label class="control-label" for="country">Zone</label>
                                    <div class="controls">
                                        <select name="Country[zone_id]" data-placeholder="Choose a zone">
                                            <option value="">--Choose zone--</option>
                                            <?php foreach($zoneList as $zone) {?>
                                                    <option <?php echo ($model->zone_id == $zone->zone_id)?'selected':''?> value="<?php echo $zone->zone_id;?>"><?php echo $zone->name?></option>
                                            <?php }
                                            ?>
                                        </select>
                                        <?php echo $form->error($model,'zone_id', array('class'=>'help-block')); ?>
                                    </div>
                                </div>
                            </div>
                            <!--/span-->
                        </div>
                        <!--/row-->
                        <div class="form-actions">
                            <button type="submit" class="btn blue"><i class="icon-ok"></i> Lưu</button>
                            <button type="button" class="btn" onclick="window.location='/admin/shippingcountry/admin'">Hủy</button>
                        </div>
                    <?php $this->endWidget(); ?>
                    <!-- END FORM-->
                </div>
            </div>
            <!-- END EXAMPLE TABLE PORTLET-->
        </div>
    </div>

    <!-- END PAGE CONTENT-->
</div>
<!-- END PAGE CONTAINER-->